package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 客户DTO
 * </p>
 *
 * @author LEO
 * @since 2020-09-04
 */
@Data
@ApiModel(value="CustomerDTO对象", description="客户")
public class CustomerDTO extends BasicEntity {


    @ApiModelProperty(value = "全局code")
    private String code;

    @ApiModelProperty(value = "客户编码")
    @Length(max = 100, message = "客户编码长度不能大于100个字符", groups = {Save.class, Update.class})
    private String customerCode;

    @ApiModelProperty(value = "客户名称")
    @Length(max = 100, message = "客户名称长度不能大于100个字符", groups = {Save.class, Update.class})
    private String name;

    @ApiModelProperty(value = "联系人")
    @Length(max = 100, message = "联系人长度不能大于100个字符", groups = {Save.class, Update.class})
    private String contacts;

    @ApiModelProperty(value = "手机号")
    @Length(max = 32, message = "手机号长度不能大于32个字符", groups = {Save.class, Update.class})
    private String phone;

    @ApiModelProperty(value = "审核状态")
    private Integer status;

    @ApiModelProperty(value = "机构标识")
    private String groupCode;

    @ApiModelProperty(value = "信用代码")
    @Length(max = 100, message = "信用代码长度不能大于100个字符", groups = {Save.class, Update.class})
    private String businessLicenseImgNumber;

    @ApiModelProperty(value = "法人")
    @Length(max = 100, message = "法人长度不能大于100个字符", groups = {Save.class, Update.class})
    private String legalPerson;

    @ApiModelProperty(value = "身份证号")
    @Length(max = 20, message = "身份证号长度不能大于20个字符", groups = {Save.class, Update.class})
    private String identificationNumber;

    @ApiModelProperty(value = "税点")
    private BigDecimal taxPoint;

    @ApiModelProperty(value = "国家")
    private String country;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "县/区")
    private String county;

    @ApiModelProperty(value = "地址")
    @Length(max = 500, message = "地址长度不能大于500个字符", groups = {Save.class, Update.class})
    private String address;

    @ApiModelProperty(value = "备注")
    @Length(max = 200, message = "备注长度不能大于200个字符", groups = {Save.class, Update.class})
    private String remark;

    @ApiModelProperty(value = "是否结算：0不结算，1结算")
    private Integer isSettlement;

    @ApiModelProperty(value = "区域信息")
    private List<String> areaList;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    public interface Save {

    }

    public interface Update {

    }
}
